#ifndef __FIRST_TITLE_H__
#define __FIRST_TITLE_H__

#include "sys_port.h"
#include "root.h"

#define ICON_INTERVAL   14  //顶部定位小图标间隔

// 与 pt_dev_name[] 对应
typedef enum
{
    FIRST_PAGE_HIGH = 0,        //不显示
    FIRST_PAGE_DOWNLOAD,        // 联网|下载美居
    FIRST_PAGE_ADD_DEV,         // 联网|添加设备
    FIRST_PAGE_CONFIG_NET,      // 联网|配网中
    FIRST_PAGE_AUTHORIZATION,   // 联网|授权中
    FIRST_PAGE_NETWORKING,      // 联网
    FIRST_PAGE_USER,            // 用户协议|隐私条款
    FIRST_PAGE_GUIDE,           // 新手指引
    FIRST_PAGE_MAX,
} first_title_page_e;

typedef struct  {
	lv_obj_t * title_left;

    lv_obj_t * top_point1;
    lv_obj_t * top_point2;
    lv_obj_t * top_point3;
    lv_obj_t * top_point4;

    lv_obj_t * title_right;
    lv_obj_t * btn;
    lv_obj_t * btn_label;

    lv_timer_t * first_title_timer;
}first_title_t;

void first_title_left(void);
void first_title_right(void);
int first_title_create(void);
void first_title_middle();

void timer_first_title(lv_timer_t * timer);

int first_title_set(uint8_t left_val, uint8_t middle_val, uint8_t right_val);
uint8_t first_left_get(void);
char * first_left_name_get(void);
uint8_t first_middle_get(void);
uint8_t first_right_get(void);


int first_title_left_hide(void);
int first_title_left_show(void);
int first_title_middle_hide(void);
int first_title_middle_show(void);
int first_title_right_label_hide(void);
int first_title_right_label_show(void);
int first_title_right_btn_hide(void);
int first_title_right_btn_show(void);

void first_title_hide(void);

#endif



